﻿<!DOCTYPE html>
<html lang="cn">

	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<!-- 以上三个meta标签必须放在最前 -->

		<!-- Bootstrap -->
		<link href="__CSS__/bootstrap.min.css" rel="stylesheet">

		<!--[if lt IE 9]>
    <script src="__JS__/html5shiv.min.js"></script>
    <script src="__JS__/respond.min.js"></script>
    <![endif]-->

		<title><{$cate.catename}>《英雄联盟》官方论坛 - Powered by Discuz!</title>
		<link rel="stylesheet" type="text/css" href="__ICSS__/style_6c2b1db9_9_common.css">
		<link rel="stylesheet" type="text/css" href="__ICSS__/style_6c2b1db9_9_forum_index.css">
		<link rel="stylesheet" type="text/css" href="__ICSS__/style_6c2b1db9_9_forum_forumdisplay.css" />

		<script src="__IJS__/forum.js" type="text/javascript"></script>
		<script type="text/javascript" charset="utf-8" src="__UEDIT__/ueditor.config.js"></script>
	    <script type="text/javascript" charset="utf-8" src="__UEDIT__/ueditor.all.min.js"> </script>
	    <script type="text/javascript" charset="utf-8" src="__UEDIT__/lang/zh-cn/zh-cn.js"></script>

		<script src="__JS__/jquery-1.8.3.min.js"></script>
		<style>			
			body {
				background: url(__IMG__/index_bg.jpg) no-repeat center 0;
			}
			#dl {
				width: 80px;
				height: 70px;
				background: #C7CDCD;
				border-radius: 3px;
				border: 1px solid #A8A9A8;
				color: white;
				margin-right: 10px;
			}
			
			#xiao {
				width: 600px;
				height: 360px;
				background: white;
				position: fixed;
				top: 200px;
				left: 400px;
				z-index: 9999;
				display: none;
				border: 5px solid #CCCCCC;
			}
			
			#tou {
				width: 590px;
				height: 50px;
				background: #F7F7F7;
				line-height: 50px;
				cursor: move;
			}
			
			#b {
				font-size: 20px;
				color: #337AB7;
				padding-left: 20px;
			}
			
			#guan {
				width: 35px;
				height: 35px;
				font-size: 35px;
				cursor: pointer;
				float: right;
			}
			
			#xia {
				width: 400px;
				height: 250px;
				border: 2px solid #EEEEEE;
				margin: 20px 0 0 95px;
			}
			
			#xia form {
				margin-top: 20px;
			}
			
			#zm {
				font-size: 20px;
				margin-left: 140px;
			}
			
			#tishi {
				color: red;
				margin-left: 140px;
			}
		</style>
	</head>

	<body>

		<div id="toptb" class="cl">
			<div class="wp">
				<div class="container">
					<div class="row">
						<div class="col-md-7">
							<a class="" onclick="alert('请按Ctrl+D')">收藏本站</a>
						</div>
					</div>
				</div>
				<div id="hd">
					<div class="wp">
						<div class="hdc cl">
							<div class="aaa" style="margin-top:20px;"></div>

							<div class="container">
								<div class="row">
									{if condition="$Request.session.user.name == ''"}
									<div class="col-md-3 col-md-offset-8">
										<a id="dl" class="btn" onclick="kai()">登录</a>
										<a href="<{:url('login/index')}>" id="dl" class="btn" target="_blank">注册</a>
									</div>
									{else}
									<div class="col-md-2 col-md-offset-7">
										<a href=""><span class="glyphicon glyphicon-user"></span></a>
										<a href="<{:url('user/index',array('id'=>$Request.session.user.id))}>" id="add"><{$Request.session.user.name}></a>
										<script>
										var add = document.getElementById('add');
										if (add.innerHTML.length > 3) {
											add.innerHTML = add.innerHTML.substr(0,3)+'...';
										}
										</script>
										<a href="<{:url('personal/index',array('id'=>$Request.session.user.id))}>">设置</a>
										<a href="<{:url('login/out')}>">退出</a>
										<br>
										
										<a href="">等级:<span>
											{if condition="$Request.session.user.type == 0"}普通会员
											{elseif condition="$Request.session.user.type == 1"}VIP会员
											{else}版主
											{/if}	
										</span></a>
									</div>
										<div class="col-md-2">
										{if condition="$Request.session.user.img == ''"}
											<img src="__UIMG__/u0.png" width="40%" style="margin-top:-10%;margin-right:50%;border-radius:5px">
										{else}
											<img src="__UIMG__/<{$Request.session.user.img}>" width="66px" height="66px;" style="margin-top:-10%">
										{/if}
										</div>
									{/if}
								</div>
							</div>
							<div id="xiao">
								<div id="tou">
									<b id="b">请登录</b>
									<b onclick="guan()" id="guan">×</b>
								</div>
								<div id="xia">
									<form action="" method="post" class="form-horizontal" id="form" onsubmit="return false">
										<div class="form-group">
											<p id="zm">账号密码登录</p>
											<b id="tishi"></b>
										</div>

										<div class="form-group">
											<label for="inputphone" class="col-sm-3 control-label">账号</label>
											<div class="col-sm-7">
												<input type="text" name="phone" class="form-control" id="inputphone" placeholder="请输入您的账号">

											</div>
										</div>
										<div class="form-group">
											<label for="inputPassword" class="col-sm-3 control-label">密码</label>
											<div class="col-sm-7">
												<input type="password" name="pass" class="form-control" id="inputPassword" placeholder="请输入您的密码">
											</div>
										</div>
										<div class="form-group">
											<div class="col-sm-offset-2 col-sm-10">
												<button type="submit" class="btn btn-success" id="button" style="width:250px;">登录</button>
											</div>
										</div>
									</form>
								</div>
							</div>
							<script>
								// 登录请求
								button.onclick = function() {
										if(/^[1][34578][0-9]{9}$/.test(inputphone.value)) {
											if(inputPassword.value != "") {
												$(function(){
													$.ajax({
														type:'post',
														url:"<{:url('login/dl')}>",
														data:"phone="+inputphone.value+"&pass="+inputPassword.value,
														dataType: 'json',
														success:function(data){
															if (data == 0) {
																$("#tishi").html("账号或密码错误");
															}else if (data == 2) {
																$("#tishi").html("账号已经被冻结");
															}else{
																location.reload();
															}
														}
													})
													
												})
											} else {
												tishi.innerHTML = "密码不能为空";
											}
										} else {
											tishi.innerHTML = "账号格式错误";
										}
									}
									// 点击登录
								function kai() {
									xiao.style.display = 'block';
								}
								//关闭登录
								function guan() {
									xiao.style.display = 'none';
								}
								var tou = document.getElementById('tou');
								var xiao = document.getElementById('xiao');
								tou.onmousedown = function(en) {
									var en = en || window.event;
									// 算出鼠标相对于xiao盒子的距离
									var left = en.clientX - xiao.offsetLeft;
									var top = en.clientY - xiao.offsetTop;
									document.onmousemove = function(env) {
										var env = env || window.event;
										// 鼠标位置-鼠标相对于xiao盒子的距离 移动鼠标时 盒子的左上角就不会跟着鼠标
										var x = env.clientX - left;
										var y = env.clientY - top;
										if(x < 0) {
											x = 0;
										}
										if(y < 0) {
											y = 0;
										}
										if(x > 1038) {
											x = 1038;
										}
										if(y > 470) {
											y = 470;
										}
										xiao.style.top = y + 'px';
										xiao.style.left = x + 'px';
									}

								}
								document.onmouseup = function() {
									document.onmousemove = null;
								}
							</script>

							<div class="fastlg cl">
								<span id="return_ls" style="display:none"></span>
								<div class="y pns">
								</div>
								<style>
									.y.pns {
										display: none
									}
									
									.ptlogin_simple {
										float: right
									}
									
									.ptlogin_simple button {
										width: 75px;
									}
									
									.scbar_txt {
										height: 40px;
									}
									.daohang {
										height: 30px;
										background: #2873C2;
										margin: 0 auto;
										border-radius: 4px;
									}
									
									.daohang li {
										float: left;
										padding-left: 20px;
										line-height: 30px;
										padding-right: 20px;
										display: inline-block;
										border-radius: 4px;
									}
									
									.daohang li a {
										font-weight: 700;
										color: white;
									}
								</style>
							</div>

						</div>
						<div class="row" style="width:957px;margin-left:1px;">
							<ul class="daohang">
								<li style="border-radius: 4px;">
									<a href="<{:url('index/index')}>" title="BBS">论坛首页</a>
								</li>
								<li>
									<a href="http://lol.qq.com/main.shtml" target="_blank">官网首页</a>
								</li>
								<li>
									<a href="http://weibo.com/lol" target="_blank">官方微博</a>
								</li>
								<li>
									{if condition="$Request.session.user.type eq null "}
									<a class="" onclick="alert('请先登录')" style="cursor:pointer;">视频站</a>
									{else}
									<a href="<{:url('video/index')}>">视频站</a>
									{/if}
								</li>
								<li>
									{if condition="$Request.session.user.type eq null "}
									<a class="" onclick="alert('请先登录')" style="cursor:pointer;">积分商城</a>
									{elseif condition="$Request.session.user.type eq 0 "}
									<a class="" onclick="alert('请先兑换VIP会员')" style="cursor:pointer;">积分商城</a>
									{else/}
									<a href="<{:url('goods/index')}>">积分商城</a>
									{/if}
								</li>
							</ul>
						</div>
						
						<div id="mu" class="cl">
						</div>
						<div id="scbar" class="cl" style="background:#FBFCFE;border-radius: 5px;">
							<form method="post" action="<{:url('search/index')}>" target="_blank">
								<table cellspacing="0" cellpadding="0">
									<tbody>
										<tr>
											<td class="scbar_icon_td">
												<img src="__IMG__/sousuo.jpg" alt="">
												</td>
											<td>
												<input type="text" name="search" id="scbar_txt" value=""class=" xg1" placeholder="请输入搜索内容" style="height: 30px;border: 1px solid #9DB0C2;padding:10px;">
											</td>
											<td class="scbar_type_td"></td>
											<td class="scbar_btn_td">
												<button type="submit" style="background:#E5EDF2;height:30px;margin:-4px 0 0 -18px;border:1px solid #9DB0C2" name="searchsubmit" id="scbar_btn" sc="1" class="pn pnc" value="true"><strong class="xi2 xs2">搜索</strong></button>
											</td>
											<td class="scbar_hot_td">
											</td>
										</tr>
									</tbody>
								</table>
							</form>
						</div>
						<ul id="scbar_type_menu" class="p_pop" style="display: none;">
							<li>
								<a href="" rel="forum" class="curtype">帖子</a>
							</li>
						</ul>
					</div>
				</div>
		</div>


        <div id="wp" class="wp">
			<div id="pt" class="bm cl">
				<a href="<{:url('index/index')}>"><img src="__IMG__/fangzi.jpg"> 论坛首页
				</a><a href="<{:url('modular/index',array('id'=>$first.id))}>"><{$first.catename}></a><em>»</em><b> <{$cate.catename}></b>
			</div>
			<div class="boardnav">
				<div id="ct" class="wp cl">

					<div class="mn">
						<div class="bm bml pbn">
							<div class="bm_h cl">
								<h1 class="xs2">
								<a href=""><{$cate.catename}></a>
								<span class="xs1 xw0 i">帖子: <strong class="xi1"><{$notenum}></strong></span></h1>
							</div>
							<div class="bm_c cl pbn">
								<div><a>版主:</a> 
									<span class="xi2">
									{volist name="banzhu" id="val"}
									<a href="<{:url('user/index',array('id'=>$val.userid))}>" class="notabs"><{$val.name}></a> 
									{/volist}
									</span>
								</div>
							</div>
						</div>
						<script src="__IJS__/jquery.flexslider.js" type="text/javascript"></script>
						<style type="text/css">
							.bm_h .toggle {
								display: block;
								width: 65px;
							}
							
							.bm_h .toggle img {
								margin-top: 3px;
							}
							img {
							vertical-align: middle;
							}
							#img_praise_3953291{
								cursor:pointer;
							}
						</style>
					</div>
					{if condition="$Request.session.user.type eq 2"}
					<table class="table table-hover" style="border-bottom:1px solid #DDDDDD	">
						<tr style="background:#F2F2F2;">
							<th width="60%">精华帖</th>
							<th width="15%">作者</td>
							<th width="10%">回复/查看</td>
							<th width="15%">操作</td>
						</tr>
						{volist name="ess" id="val"}
						<tr height="45px;">
							<td>
								<a href="<{:url('post/index',array('id'=>$val.id))}>"><img src="__IIMG__/picture/pin_1.gif" title="本版置顶" /><b> <{$val.title}> </b><img src="__IIMG__/picture/digest_1.gif" title="精华"/></a>

							</td>
							<td>
								<a href="<{:url('post/index',array('id'=>$val.id))}>"><{$val.name}> <br>	<{$val.time}></a>
							</td>
							<td>
								<a href="<{:url('post/index',array('id'=>$val.id))}>"><{$val.respond}> <br> <{$val.scan}></a>
							</td>
							<td>
								<a href="<{:url('power/ord',array('id'=>$val.id))}>" class="btn btn-primary btn-lg"> 普通 </a>
								<a href="<{:url('power/seal',array('id'=>$val.id))}>" class="btn btn-danger btn-lg"> 封帖 </a>
							</td>
						</tr>
						{/volist}
					</table>
					<table class="table table-hover" style="border-bottom:1px solid #DDDDDD	">
						<tr style="background:#F2F2F2;">
							<th width="60%">全部帖子</th>
							<th width="15%"></td>
							<th width="10%"></td>
							<th width="15%"></td>
						</tr>
						{volist name="note" id="val"}
						<tr height="45px;">
							<td>
								<a href="<{:url('post/index',array('id'=>$val.id))}>">
								<b><img src="__IIMG__/folder.gif"> <{$val.title}></b></a>
							</td>
							<td>
								<a href="<{:url('post/index',array('id'=>$val.id))}>"><{$val.name}> <br>	<{$val.time}></a>
							</td>
							<td>
								<a href="<{:url('post/index',array('id'=>$val.id))}>"><{$val.respond}> <br> <{$val.scan}></a>
							</td>
							<td>
								<a href="<{:url('power/ess',array('id'=>$val.id))}>" class="btn btn-success btn-lg"> 精华 </a>
								<a href="<{:url('power/seal',array('id'=>$val.id))}>" class="btn btn-danger btn-lg"> 封帖 </a>
							</td>
						</tr>
						{/volist}
					</table>
					{else}
					<table class="table table-hover" style="border-bottom:1px solid #DDDDDD	">
						<tr style="background:#F2F2F2;">
							<th width="65%">精华帖</th>
							<th width="15%">作者</td>
							<th width="15%">回复/查看</td>
						</tr>
						{volist name="ess" id="val"}
						<tr height="45px;">
							<td>
								<a href="<{:url('post/index',array('id'=>$val.id))}>"><img src="__IIMG__/picture/pin_1.gif" title="本版置顶" /><b> <{$val.title}> </b><img src="__IIMG__/picture/digest_1.gif" title="精华"/></a>

							</td>
							<td>
								<a href="<{:url('post/index',array('id'=>$val.id))}>"><{$val.name}> <br>	<{$val.time}></a>
							</td>
							<td>
								<a href="<{:url('post/index',array('id'=>$val.id))}>"><{$val.respond}> <br> <{$val.scan}></a>
							</td>
						</tr>
						{/volist}
					</table>
					<table class="table table-hover" style="border-bottom:1px solid #DDDDDD	">
						<tr style="background:#F2F2F2;">
							<th width="65%">全部帖子</th>
							<th width="15%"></td>
							<th width="15%"></td>
						</tr>
						{volist name="note" id="val"}
						<tr height="45px;">
							<td>
								<a href="<{:url('post/index',array('id'=>$val.id))}>">
								<b><img src="__IIMG__/folder.gif"> <{$val.title}></b></a>
							</td>
							<td>
								<a href="<{:url('post/index',array('id'=>$val.id))}>"><{$val.name}> <br>	<{$val.time}></a>
							</td>
							<td>
								<a href="<{:url('post/index',array('id'=>$val.id))}>"><{$val.respond}> <br> <{$val.scan}></a>
							</td>
						</tr>
						{/volist}
					</table>
					{/if}
					<!-- <div class="bm bw0 pgs cl" style="border-top:1px solid #F2F2F2">
						<span id="fd_page_bottom">
							<div class="pg">
								<strong>1</strong>
								<a href="">2</a>
								<a href="">3</a>
								<a href="">4</a>
								<a href="">5</a>
								<a href="">6</a>
								<a href="">7</a>
								<a href="">8</a>
								<a href="">9</a>
								<a href="">10</a>
								<label>
									<input type="text" name="custompage" class="px" size="2" title="输入页码，按回车快速跳转" value="1" onkeydown="if(event.keyCode==13) {window.location='forum.php?mod=forumdisplay&fid=40&amp;page='+this.value; doane(event);}" />
									<span title="共 1000 页"> / 10 页</span></label>
								<a href="forum.php?mod=forumdisplay&fid=40&amp;page=2" class="nxt">下一页</a>
							</div>
						</span>
						<span class="pgb y"><a href="">返&nbsp;&nbsp;回</a></span>
						<a href="javascript:;" id="newspecialtmp" title="发新帖"><img src="__IIMG__/picture/pn_post.png" alt="发新帖" /></a>
					</div> -->
				<div id="f_pst" class="bm">
					<div class="bm_h">
						<h2 style="margin-top:8px;">快速发帖</h2>
					</div>
					<div class="bm_c">
						<form method="post" id="fastpostform" action="<{:url('Post/add',array('id'=>$cate.id))}>" enctype="multipart/form-data"  onsubmit="return false">
                            <div id="fastpostreturn" style="margin:-5px 0 5px"></div>
							<div class="pbt cl">
								<div class="ftid"><b>标题名</b></div>
								<input type="text" id="subject" name="title" class="px" value=""  tabindex="11" style="width:30%" height="3
								0px;"/>
								<span>还可输入 <strong id="checklen">30</strong> 个字符</span>
							</div>
							<b class="ftid">图片: </b><input type="file" name="image" value="">
                            <div class="cl">
								<div id="fastsmiliesdiv" class="y">
									<div id="fastsmiliesdiv_data">
										<div id="fastsmilies"></div>
									</div>
								</div>
								<div class="hasfsl" id="fastposteditor">
									<div class="tedt" style="border: none;">
										<div class="area">
											<script id="editor" type="text/plain" style="width:748px;height:138px;"></script>
											<script type="text/javascript">
											    //实例化编辑器
											    //建议使用工厂方法getEditor创建和引用编辑器实例，如果在某个闭包下引用该编辑器，直接调用UE.getEditor('editor')就能拿到相关的实例
											    var ue = UE.getEditor('editor');
											    
											</script>
										</div>
									</div>
								</div>
							</div>
							<p class="ptm pnpost">
								<button type="submit" onclick="publish()" tabindex="13" class="pn pnc"><strong>发表帖子</strong></button>
							</p>
							<script>
							function publish(){
								{if condition="$Request.session.user.name eq ''"}
								alert('请先登录');
								xiao.style.display = 'block';
								{else}
								fastpostform.onsubmit = function(){
									return true;
								}
								{/if}
							}
							</script>
						</form>
					</div>
				</div>
				<!--[diy=diyforumdisplaybottom]-->
				<div id="diyforumdisplaybottom" class="area"></div>
				<!--[/diy]-->
			</div>

		</div>
		</div>	
		<div class="container" style="margin-left:16.4%">
				<div class="row">
					<div class="col-md-10" style="height:10px;border-top:1px solid black;margin:10px 0 0 -10px;">
					</div>
				</div>
				<div class="row">
					<p class="col-md-2 ">Powered by <b>Discuz!</b> X2.5</p>
					<p class="col-md-3 col-md-offset-6">
						<a href="">Archiver</a>
						<a href="">论坛首页</a>
						<a href=""><img src="__IIMG__/qq.png"></a>
						<a href=""><img src="__IIMG__/toss.gif"></a>
					</p>

				</div>
				<div class="row">
					<p class="col-md-3">© 2001-2012 Comsenz Inc.</p>
					<p class="col-md-3 col-md-offset-5"><b>GMT+8</b> ,time :
						<{:date( "h:i:s")}>
					</p>
				</div>
				<div class="row">
					<div class="col-md-10 col-md-offset-1" style="margin-top:20px;">
					</div>
				</div>
			</div>
			<!-- 引入jQuery -->
			<script src="__JS__/jquery.min.js"></script>
			<!-- bootstrap的JS文件必须放在JQ引入之后! -->
			<script src="__JS__/bootstrap.min.js"></script>
	</body>

</html>